Return

Edit Task: Preference

Description

The Preference attribute under EditTask defines the given scheduling preference for a task. For a task with non-overlapping timeslots, this will change the desirability of each timeslot (i.e. when 'Middle' is set, timeslots closer to the middle of the schedule will be more desirable).

Parameters

ParameterDescription
PreferenceOptions are either "NoPreference", "SchedueEarly", "ScheduleMiddle", "ScheduleLate", "ScheduleExact". Using the SchedileExact option will override the settings from the EditTask TimeslotPreference command.
ExactDate"YYYY/MM/DD_HH:MM:SS". Only used if ScheduleExact is also used.

Examples

Sets the scheduling preference of a task to Late

PATCH api/task/TaskA

Body:

{

"Preference" : "ScheduleLate"

}

Sets the scheduling preference of a task to an exact time

PATCH api/task/TaskA

Body:

{

"Preference" : "ScheduleLate";

"ExactDate" : "2018/03/06_12:30:00.000"

}